package com.raymond.mapper.settlement;

import com.raymond.entity.settlement.OrderSettlementEntity;
import com.raymond.entity.settlement.OrderSettlementGroupSummaryEntity;
import com.raymond.entity.settlement.OrderSettlementPageQueryReqVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * desc-结算单 数据层
 *
 * @author houmenghe
 * @date 2025/04/21 17:59
 **/
@Repository
public interface OrderSettlementMapper {

    List<OrderSettlementEntity> searchSettlementPageList(OrderSettlementPageQueryReqVo query);

    int searchSettlementPageListCount(OrderSettlementPageQueryReqVo query);

    List<OrderSettlementGroupSummaryEntity> searchSettlementPageListSummaryCount(OrderSettlementPageQueryReqVo query);

    OrderSettlementEntity searchSettlementBySysNo(Long sysNo);

    int insertOrderSettlement(OrderSettlementEntity orderSettlement);

    int batchInsert(List<OrderSettlementEntity> list);

    int deleteSettlementBySysNo(Long sysNo);
}
